//
//  OperationQueue+convenience.swift
//  HeadlineNews
//
//  Created by han on 2019/6/5.
//  Copyright © 2019 han. All rights reserved.
//

import Foundation

extension OperationQueue {
    
    convenience init(qualityOfService: QualityOfService = .default, masConcurrentOperationCount: Int = OperationQueue.defaultMaxConcurrentOperationCount, underlyingQueue: DispatchQueue? = nil, name: String? = nil, startSuspended: Bool = false) {
        self.init()
        self.qualityOfService = qualityOfService
        self.maxConcurrentOperationCount = maxConcurrentOperationCount
        self.underlyingQueue = underlyingQueue
        self.name = name
        self.isSuspended = isSuspended
    }
}
